import request from '@/utils/request'

// 查询当前视图展示字段
export function getByViewId(viewId) {
  return request({
    url: '/show/searchMainShow/getByViewId/' + viewId,
    method: 'get'
  })
}

// 保存当前视图展示字段
export function saveShowFieldList(showFieldList) {
  var searchMain = {}
  searchMain.searchMainShowList = showFieldList
  return request({
    url: '/show/searchMainShow/saveList',
    method: 'post',
    data: searchMain
  })
}

// 删除个人视图
export function deleteByViewId(viewId) {
  return request({
    url: '/show/searchMainShow/' + viewId,
    method: 'delete'
  })
}
